/* 
 * Created on 2007-1-14
 * Last modified on 2007-1-14
 * Powered by YeQiangWei.com
 */
package com.yeqiangwei.util;

import java.util.List;

public class Validator {

	public static boolean isEmpty(Object obj){
		return obj == null;
	}
	
	public static boolean isEmpty(List list){
		return list == null || list.size() == 0;
	}
	
	public static boolean isEmpty(String s){
		return s == null || s.length() == 0;
	}
	
	public static boolean isEmpty(Object[] obj){
		return obj == null || obj.length == 0;
	}
	
	
}
